package com.sophialex.health.record.ui.visits;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.DateTime;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.ScrolledForm;
import org.eclipse.ui.forms.widgets.Section;
import org.eclipse.ui.part.ViewPart;

import com.sophialex.health.record.Messages;
import com.sophialex.health.record.common.bind.swt.annotations.AnnotionProcessor;
import com.sophialex.health.record.common.utils.ImageUtil;
//结核病患者随访表（1）
public abstract class TuberculosisVisits1UI extends ViewPart {
	public TuberculosisVisits1UI() {
	}
	public static final String ID = "com.sophialex.health.record.ui.visits.TuberculosisVisits1"; //$NON-NLS-1$

	private final FormToolkit toolkit = new FormToolkit(Display.getCurrent());
	
	
	protected ToolItem toolItemEdit;

	protected ToolItem toolItemDel;

	protected ToolItem toolItemSave;

	protected ToolItem toolItemCancel;

	protected ToolItem toolItemAdd;

	protected AnnotionProcessor ap = new AnnotionProcessor(this);
	private Composite composite_1;

	private Text txtPersonName;

	private Text txtGRDABH;

	private DateTime dtVisitTime;

	private Combo comboSFFS;

	private Combo comboFJHZD;

	private Button chkKSTT;

	private Button chkEXYS;

	private Button chkFZFT;

	private Button chkHXKN;

	private Button chkTTTY;

	private Button chkSMian;

	private Button chkQTZZ;
	private Text txtQTZZ;
	private Button chkYSQKQW;

	private Combo comboHBZ;

	private Text txtTZhong;

	private Text txtBMI;

	private Text txtTZQT;

	private Text txtYWMC1;

	private Text txtCMR1;

	private Text txtMCYL1;

	private Combo comboMCYL1;

	private Text txtYWMC2;

	private Text txtCMR2;

	private Text txtMCYL2;

	private Combo comboMCYL2;

	private Text txtYWMC3;

	private Text txtCMR3;

	private Text txtMCYL3;

	private Combo comboMCYL3;

	private Text txtYWMC4;

	private Text txtCMR4;

	private Text txtMCYL4;

	private Combo comboMCYL4;

	private Combo comboFYQK;

	private Combo comboBLFY;

	private Text txtBLFY;

	private Combo comboHLFA;

	private Combo comboGGNJC;

	private Text txtXYM;

	private Text txtYJ;

	private Combo comboYS;

	private Combo comboBLQX;

	private Combo comboZYXW;

	private Text txtCMZ;

	private Text txtFZMC;

	private Combo comboHJ;

	private Text txtZDYJ;

	private Combo comboSFYSQM;

	private DateTime dtXCSFSJ;

	
	@Override
	public void createPartControl(Composite p) {
		
		Composite container = new Composite(p, SWT.NONE);
		container.setLayout(new FormLayout());
		createToolbar(container);
		Composite parent = new Composite(container, SWT.NONE);
		{
			FormData formData = new FormData();
			formData.top = new FormAttachment(composite_1, 0);
			formData.bottom = new FormAttachment(100, -4);
			formData.right = new FormAttachment(composite_1, 0, SWT.RIGHT);
			formData.left = new FormAttachment(composite_1, 0, SWT.LEFT);
			parent.setLayout(new FillLayout(SWT.FILL));
			parent.setLayoutData(formData);
		}
		int top_sect_space = 20;
		int row_space = 24;
		int hori_space = 10;
		int neighbor_sapce = 25;
		int sect_margin = 15;
		int left_margin = 25;
		ScrolledComposite scrolledComposite = new ScrolledComposite(parent, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
		toolkit.adapt(scrolledComposite);
		toolkit.paintBordersFor(scrolledComposite);
		scrolledComposite.setExpandHorizontal(true);
		scrolledComposite.setExpandVertical(true);

		Composite topLevelContainer = toolkit.createComposite(scrolledComposite, SWT.NONE);
		toolkit.paintBordersFor(topLevelContainer);
		topLevelContainer.setLayout(new FillLayout(SWT.HORIZONTAL));

		ScrolledForm scrldfrmNewScrolledform = toolkit.createScrolledForm(topLevelContainer);
		toolkit.paintBordersFor(scrldfrmNewScrolledform);
		scrldfrmNewScrolledform.getBody().setLayout(new FormLayout());

		Section sctBaseInfo = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctBaseInfo = new FormData();
		fd_sctBaseInfo.right = new FormAttachment(100, -sect_margin);
		fd_sctBaseInfo.top = new FormAttachment(0, 10);
		fd_sctBaseInfo.left = new FormAttachment(0, sect_margin);
		sctBaseInfo.setLayoutData(fd_sctBaseInfo);
		toolkit.paintBordersFor(sctBaseInfo);
		sctBaseInfo.setText("随访信息");// 随访信息
		sctBaseInfo.setExpanded(false);

		Composite composite = toolkit.createComposite(sctBaseInfo, SWT.NONE);
		toolkit.paintBordersFor(composite);
		sctBaseInfo.setClient(composite);
		composite.setLayout(new FormLayout());
		
		Label labName = toolkit.createLabel(composite, "姓名：", SWT.NONE);
		FormData fd_labName = new FormData();
		fd_labName.top = new FormAttachment(0, top_sect_space);
		fd_labName.left = new FormAttachment(4, 30);
		labName.setLayoutData(fd_labName);
		
		txtPersonName = toolkit.createText(composite, "", SWT.NONE);
		FormData fd_txtPersonName = new FormData();
		fd_txtPersonName.right = new FormAttachment(labName, 132, SWT.RIGHT);
		fd_txtPersonName.top = new FormAttachment(labName, 0, SWT.TOP);
		fd_txtPersonName.left = new FormAttachment(labName, hori_space);
		txtPersonName.setLayoutData(fd_txtPersonName);
		
		Label lblGRDNBH = toolkit.createLabel(composite, "个人档案编号：", SWT.NONE);
		FormData fd_lblGRDNBH = new FormData();
		fd_lblGRDNBH.top = new FormAttachment(labName, 0, SWT.TOP);
		fd_lblGRDNBH.left = new FormAttachment(txtPersonName, neighbor_sapce);
		lblGRDNBH.setLayoutData(fd_lblGRDNBH);
		
		
		
		txtGRDABH = toolkit.createText(composite, "", SWT.NONE);
		FormData fd_txtGRDABH = new FormData();
		fd_txtGRDABH.right = new FormAttachment(lblGRDNBH, 214, SWT.RIGHT);
		fd_txtGRDABH.top = new FormAttachment(labName, 0, SWT.TOP);
		fd_txtGRDABH.left = new FormAttachment(lblGRDNBH, hori_space);
		txtGRDABH.setLayoutData(fd_txtGRDABH);

		Label lblVistitTime = toolkit.createLabel(composite, "本次随访时间：", SWT.NONE);
		FormData fd_lblVistitTime = new FormData();
		fd_lblVistitTime.top = new FormAttachment(labName, row_space);
		fd_lblVistitTime.right = new FormAttachment(labName, 0,SWT.RIGHT);
		fd_lblVistitTime.bottom = new FormAttachment(100, -10);
		lblVistitTime.setLayoutData(fd_lblVistitTime);
		
		dtVisitTime = new DateTime(composite, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtVisitTime = new FormData();
		fd_dtVisitTime.bottom = new FormAttachment(lblVistitTime, 0, SWT.BOTTOM);
		fd_dtVisitTime.right = new FormAttachment(txtPersonName, 0, SWT.RIGHT);
		fd_dtVisitTime.left = new FormAttachment(lblVistitTime, hori_space);
		dtVisitTime.setLayoutData(fd_dtVisitTime);
		toolkit.adapt(dtVisitTime);
		toolkit.paintBordersFor(dtVisitTime);
		
		Label lblVisitType = toolkit.createLabel(composite, "随访方式：", SWT.NONE);
		FormData fd_lblVisitType = new FormData();
		//fd_lblVisitType.left = new FormAttachment(dtVisitTime, neighbor_sapce);
		fd_lblVisitType.bottom = new FormAttachment(lblVistitTime, 0, SWT.BOTTOM);
		fd_lblVisitType.right = new FormAttachment(lblGRDNBH, 0, SWT.RIGHT);
		lblVisitType.setLayoutData(fd_lblVisitType);
		
		comboSFFS = new Combo(composite, SWT.READ_ONLY);
		comboSFFS.setItems(new String[] {"门诊", "家庭", "电话"});
		FormData fd_comboSFFS = new FormData();
		fd_comboSFFS.bottom = new FormAttachment(lblVistitTime, 0, SWT.BOTTOM);
		fd_comboSFFS.left = new FormAttachment(txtGRDABH, 0, SWT.LEFT);
		comboSFFS.setLayoutData(fd_comboSFFS);
		toolkit.adapt(comboSFFS);
		toolkit.paintBordersFor(comboSFFS);
		
		Section sctSymptom = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctSymptom = new FormData();
		fd_sctSymptom.right = new FormAttachment(100, -sect_margin);
		fd_sctSymptom.top = new FormAttachment(sctBaseInfo, top_sect_space, SWT.BOTTOM);
		fd_sctSymptom.left = new FormAttachment(0, sect_margin);
		sctSymptom.setLayoutData(fd_sctSymptom);
		toolkit.paintBordersFor(sctSymptom);
		sctSymptom.setText("诊断相关");// 诊断相关
		sctSymptom.setExpanded(true);

		Composite compSymptom = toolkit.createComposite(sctSymptom, SWT.NONE);
		toolkit.paintBordersFor(compSymptom);
		sctSymptom.setClient(compSymptom);
		compSymptom.setLayout(new FormLayout());
		
		Label labFJHZD = toolkit.createLabel(compSymptom, "肺结核诊断：", SWT.NONE);
		FormData fd_labFJHZD = new FormData();
		fd_labFJHZD.top = new FormAttachment(0, 10);
		fd_labFJHZD.left = new FormAttachment(4, left_margin);
		//fd_labFJHZD.bottom = new FormAttachment(100, -10);
		labFJHZD.setLayoutData(fd_labFJHZD);
		
		comboFJHZD = new Combo(compSymptom, SWT.READ_ONLY);
		comboFJHZD.setItems(new String[] {"涂阳", "涂阴", "涂阴重症", "仅培阳", "未查", "胸膜炎", "肺外结核"});
		FormData fd_comboFJHZD = new FormData();
		fd_comboFJHZD.bottom = new FormAttachment(labFJHZD, 4, SWT.BOTTOM);
		fd_comboFJHZD.left = new FormAttachment(labFJHZD, hori_space);
		comboFJHZD.setLayoutData(fd_comboFJHZD);
		toolkit.adapt(comboFJHZD);
		toolkit.paintBordersFor(comboFJHZD);
		
		Label labZZ = toolkit.createLabel(compSymptom, "症状：", SWT.NONE);
		FormData fd_labZZ = new FormData();
		fd_labZZ.top = new FormAttachment(labFJHZD, row_space);
		fd_labZZ.right = new FormAttachment(labFJHZD, 0, SWT.RIGHT);
		labZZ.setLayoutData(fd_labZZ);
		
		chkKSTT = toolkit.createButton(compSymptom, "咳嗽咳痰", SWT.CHECK);//头痛
		FormData fd_chkKSTT = new FormData();
		fd_chkKSTT.bottom = new FormAttachment(labZZ, 0 ,SWT.BOTTOM);
		fd_chkKSTT.left = new FormAttachment(labZZ,hori_space);
		chkKSTT.setLayoutData(fd_chkKSTT);

		chkEXYS = toolkit.createButton(compSymptom, "恶心厌食", SWT.CHECK);//头晕
		FormData fd_chkEXYS = new FormData();
		fd_chkEXYS.left = new FormAttachment(chkKSTT, 15);
		fd_chkEXYS.top = new FormAttachment(chkKSTT, 0, SWT.TOP);
		chkEXYS.setLayoutData(fd_chkEXYS);

		chkFZFT = toolkit.createButton(compSymptom, "腹胀腹痛", SWT.CHECK);//心悸
		FormData fd_chkFZFT = new FormData();
		fd_chkFZFT.left = new FormAttachment(chkEXYS, 15);
		fd_chkFZFT.top = new FormAttachment(chkEXYS, 0, SWT.TOP);
		chkFZFT.setLayoutData(fd_chkFZFT);

		chkHXKN = toolkit.createButton(compSymptom, "呼吸困难", SWT.CHECK);//胸闷
		FormData fd_chkHXKN = new FormData();
		fd_chkHXKN.left = new FormAttachment(chkFZFT, 15);
		fd_chkHXKN.top = new FormAttachment(chkFZFT, 0, SWT.TOP);
		chkHXKN.setLayoutData(fd_chkHXKN);

		chkTTTY = toolkit.createButton(compSymptom, "头痛头晕", SWT.CHECK);//胸痛
		FormData fd_chkTTTY = new FormData();
		fd_chkTTTY.left = new FormAttachment(chkHXKN, 15);
		fd_chkTTTY.top = new FormAttachment(chkHXKN, 0, SWT.TOP);
		chkTTTY.setLayoutData(fd_chkTTTY);

		chkSMian = toolkit.createButton(compSymptom, "失眠", SWT.CHECK);//咳嗽
		FormData fd_chkSMian = new FormData();
		fd_chkSMian.left = new FormAttachment(chkTTTY, 15);
		fd_chkSMian.top = new FormAttachment(chkTTTY, 0, SWT.TOP);
		chkSMian.setLayoutData(fd_chkSMian);

		chkQTZZ = toolkit.createButton(compSymptom, "其他症状", SWT.CHECK);//咳痰
		FormData fd_chkQTZZ = new FormData();
		fd_chkQTZZ.top = new FormAttachment(chkSMian, 0, SWT.TOP);
		fd_chkQTZZ.left = new FormAttachment(chkSMian, 15);
		chkQTZZ.setLayoutData(fd_chkQTZZ);
		
		txtQTZZ = toolkit.createText(compSymptom, "", SWT.NONE);
		FormData fd_txtQTZZ = new FormData();
		fd_txtQTZZ.right = new FormAttachment(chkQTZZ, 132, SWT.RIGHT);
		fd_txtQTZZ.top = new FormAttachment(chkQTZZ, 0, SWT.TOP);
		fd_txtQTZZ.left = new FormAttachment(chkQTZZ, hori_space);
		txtQTZZ.setLayoutData(fd_txtQTZZ);
		
		
		chkYSQKQW = toolkit.createButton(compSymptom, ".以上情况全无", SWT.CHECK);//呼吸困难
		FormData fd_chkYSQKQW = new FormData();
		fd_chkYSQKQW.left = new FormAttachment(txtQTZZ,  15);
		fd_chkYSQKQW.top = new FormAttachment(txtQTZZ,0, SWT.TOP);
		chkYSQKQW.setLayoutData(fd_chkYSQKQW);

		Label labHBZ = toolkit.createLabel(compSymptom, "合并症：", SWT.NONE);
		FormData fd_labHBZ = new FormData();
		fd_labHBZ.top = new FormAttachment(labZZ, row_space);
		fd_labHBZ.right = new FormAttachment(labZZ, 0, SWT.RIGHT);
		labHBZ.setLayoutData(fd_labHBZ);
		
		comboHBZ = new Combo(compSymptom, SWT.READ_ONLY);
		comboHBZ.setItems(new String[] {"无", "糖尿病", "尘肺", "精神病", "其他"});
		FormData fd_comboHBZ = new FormData();
		fd_comboHBZ.bottom = new FormAttachment(labHBZ, 4, SWT.BOTTOM);
		fd_comboHBZ.left = new FormAttachment(labHBZ, hori_space);
		comboHBZ.setLayoutData(fd_comboHBZ);
		toolkit.adapt(comboHBZ);
		toolkit.paintBordersFor(comboHBZ);
		

	
		//体征
		Section sctTZ = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctTZ = new FormData();
		fd_sctTZ.right = new FormAttachment(100, -sect_margin);
		fd_sctTZ.top = new FormAttachment(sctSymptom, top_sect_space, SWT.BOTTOM);
		fd_sctTZ.left = new FormAttachment(0, sect_margin);
		sctTZ.setLayoutData(fd_sctTZ);
		toolkit.paintBordersFor(sctTZ);
		sctTZ.setText("体征");// 体征
		sctTZ.setExpanded(true);

		Composite compTZ = toolkit.createComposite(sctTZ, SWT.NONE);
		toolkit.paintBordersFor(compTZ);
		sctTZ.setClient(compTZ);
		compTZ.setLayout(new FormLayout());
		
		Label labTZhong = toolkit.createLabel(compTZ, "体重：", SWT.NONE);
		FormData fd_labTZhong = new FormData();
		fd_labTZhong.top = new FormAttachment(0, 10);
		fd_labTZhong.left = new FormAttachment(4, left_margin);
		fd_labTZhong.bottom = new FormAttachment(100, -10);
		labTZhong.setLayoutData(fd_labTZhong);
		
		txtTZhong = toolkit.createText(compTZ, "", SWT.NONE);
		FormData fd_txtTZhong = new FormData();
		fd_txtTZhong.right = new FormAttachment(labTZhong, 72, SWT.RIGHT);
		fd_txtTZhong.top = new FormAttachment(labTZhong, 0, SWT.TOP);
		fd_txtTZhong.left = new FormAttachment(labTZhong, hori_space);
		txtTZhong.setLayoutData(fd_txtTZhong);
		
		Label labmmHg = toolkit.createLabel(compTZ, "kg", SWT.NONE);
		FormData fd_labmmHg = new FormData();
		fd_labmmHg.top = new FormAttachment(labTZhong, 0, SWT.TOP);
		fd_labmmHg.left = new FormAttachment(txtTZhong, hori_space);
		labmmHg.setLayoutData(fd_labmmHg);
		
		
		Label lblRMI = toolkit.createLabel(compTZ, "身体质量指数（BMI）：", SWT.NONE);//体重
		FormData fd_lblRMI = new FormData();
		fd_lblRMI.top = new FormAttachment(labmmHg, 0, SWT.TOP);
		fd_lblRMI.left = new FormAttachment(labmmHg, neighbor_sapce);
		lblRMI.setLayoutData(fd_lblRMI);
		
		txtBMI = toolkit.createText(compTZ, "", SWT.NONE);
		FormData fd_txtBMI = new FormData();
		fd_txtBMI.right = new FormAttachment(lblRMI, 72, SWT.RIGHT);
		fd_txtBMI.top = new FormAttachment(lblRMI, 0, SWT.TOP);
		fd_txtBMI.left = new FormAttachment(lblRMI, hori_space);
		txtBMI.setLayoutData(fd_txtBMI);
		
		Label lblKG = toolkit.createLabel(compTZ, "其他：", SWT.NONE);
		FormData fd_lblKG = new FormData();
		fd_lblKG.top = new FormAttachment(lblRMI, 0, SWT.TOP);
		fd_lblKG.left = new FormAttachment(txtBMI, neighbor_sapce);
		lblKG.setLayoutData(fd_lblKG);
		
		txtTZQT = toolkit.createText(compTZ, "", SWT.NONE);
		FormData fd_txtTZQT = new FormData();
		fd_txtTZQT.right = new FormAttachment(lblKG, 400, SWT.RIGHT);
		fd_txtTZQT.top = new FormAttachment(lblKG, 0, SWT.TOP);
		fd_txtTZQT.left = new FormAttachment(lblKG, hori_space);
		txtTZQT.setLayoutData(fd_txtTZQT);
		
		//药物情况
		Section sctYWJT = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctYWJT = new FormData();
		fd_sctYWJT.right = new FormAttachment(100, -sect_margin);
		fd_sctYWJT.top = new FormAttachment(sctTZ, top_sect_space, SWT.BOTTOM);
		fd_sctYWJT.left = new FormAttachment(0, sect_margin);
		sctYWJT.setLayoutData(fd_sctYWJT);
		toolkit.paintBordersFor(sctYWJT);
		sctYWJT.setText("药物情况");// 药物情况
		sctYWJT.setExpanded(false);

		Composite compYWJT = toolkit.createComposite(sctYWJT, SWT.NONE);
		toolkit.paintBordersFor(compYWJT);
		sctYWJT.setClient(compYWJT);
		compYWJT.setLayout(new FormLayout());
		
		Label labHLFA = toolkit.createLabel(compYWJT, "化疗方案：", SWT.NONE);
		FormData fd_labHLFA = new FormData();
		fd_labHLFA.top = new FormAttachment(0, top_sect_space);
		fd_labHLFA.left = new FormAttachment(4, left_margin);
		labHLFA.setLayoutData(fd_labHLFA);
		
		comboHLFA = new Combo(compYWJT, SWT.READ_ONLY);
		comboHLFA.setItems(new String[] {"初治2S（E）HRZ/4HR", "初治2S（E）HRZ/4HR（全程隔日）", "复治2S（E）HRZ/6HR", "其他"});
		FormData fd_comboHLFA = new FormData();
		fd_comboHLFA.bottom = new FormAttachment(labHLFA, 4, SWT.BOTTOM);
		fd_comboHLFA.left = new FormAttachment(labHLFA, hori_space);
		comboHLFA.setLayoutData(fd_comboHLFA);
		toolkit.adapt(comboHLFA);
		toolkit.paintBordersFor(comboHLFA);
		
		Label labYWMC1 = toolkit.createLabel(compYWJT, "药物名称1：", SWT.NONE);
		FormData fd_labYWMC1 = new FormData();
		fd_labYWMC1.top = new FormAttachment(labHLFA, row_space);
		fd_labYWMC1.left = new FormAttachment(labHLFA, 0, SWT.LEFT);
		labYWMC1.setLayoutData(fd_labYWMC1);
		
		txtYWMC1 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtYWMC1 = new FormData();
		fd_txtYWMC1.right = new FormAttachment(labYWMC1, 132, SWT.RIGHT);
		fd_txtYWMC1.top = new FormAttachment(labYWMC1, 0, SWT.TOP);
		fd_txtYWMC1.left = new FormAttachment(labYWMC1, hori_space);
		txtYWMC1.setLayoutData(fd_txtYWMC1);
		
		Label labYF1 = toolkit.createLabel(compYWJT, "用法：", SWT.NONE);
		FormData fd_labYF1 = new FormData();
		fd_labYF1.top = new FormAttachment(txtYWMC1, 0, SWT.TOP);
		fd_labYF1.left = new FormAttachment(txtYWMC1, neighbor_sapce);
		labYF1.setLayoutData(fd_labYF1);
		
		txtCMR1 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtCMR1 = new FormData();
		fd_txtCMR1.right = new FormAttachment(labYF1, 50, SWT.RIGHT);
		fd_txtCMR1.top = new FormAttachment(labYF1, 0, SWT.TOP);
		fd_txtCMR1.left = new FormAttachment(labYF1, hori_space);
		txtCMR1.setLayoutData(fd_txtCMR1);
		
		Label labCMR1 = toolkit.createLabel(compYWJT, "次/日", SWT.NONE);
		FormData fd_labCMR1 = new FormData();
		fd_labCMR1.top = new FormAttachment(txtCMR1, 0, SWT.TOP);
		fd_labCMR1.left = new FormAttachment(txtCMR1, hori_space);
		labCMR1.setLayoutData(fd_labCMR1);
		
		txtMCYL1 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtMCYL1 = new FormData();
		fd_txtMCYL1.right = new FormAttachment(labCMR1, 70, SWT.RIGHT);
		fd_txtMCYL1.top = new FormAttachment(labCMR1, 0, SWT.TOP);
		fd_txtMCYL1.left = new FormAttachment(labCMR1, neighbor_sapce);
		txtMCYL1.setLayoutData(fd_txtMCYL1);
		
		comboMCYL1 = new Combo(compYWJT, SWT.READ_ONLY);
		comboMCYL1.setItems(new String[] {"mg/次", "片/次"});
		FormData fd_comboMCYL1 = new FormData();
		fd_comboMCYL1.bottom = new FormAttachment(labYWMC1, 4, SWT.BOTTOM);
		fd_comboMCYL1.left = new FormAttachment(txtMCYL1, hori_space);
		comboMCYL1.setLayoutData(fd_comboMCYL1);
		toolkit.adapt(comboMCYL1);
		toolkit.paintBordersFor(comboMCYL1);
		
		Label labYWMC2 = toolkit.createLabel(compYWJT, "药物名称2：", SWT.NONE);
		FormData fd_labYWMC2 = new FormData();
		fd_labYWMC2.top = new FormAttachment(labYWMC1, row_space);
		fd_labYWMC2.left = new FormAttachment(labYWMC1, 0, SWT.LEFT);
		labYWMC2.setLayoutData(fd_labYWMC2);
		
		txtYWMC2 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtYWMC2 = new FormData();
		fd_txtYWMC2.right = new FormAttachment(labYWMC2, 132, SWT.RIGHT);
		fd_txtYWMC2.top = new FormAttachment(labYWMC2, 0, SWT.TOP);
		fd_txtYWMC2.left = new FormAttachment(labYWMC2, hori_space);
		txtYWMC2.setLayoutData(fd_txtYWMC2);
		
		Label labYF2 = toolkit.createLabel(compYWJT, "用法：", SWT.NONE);
		FormData fd_labYF2 = new FormData();
		fd_labYF2.top = new FormAttachment(txtYWMC2, 0, SWT.TOP);
		fd_labYF2.left = new FormAttachment(txtYWMC2, neighbor_sapce);
		labYF2.setLayoutData(fd_labYF2);
		
		txtCMR2 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtCMR2 = new FormData();
		fd_txtCMR2.right = new FormAttachment(labYF2, 50, SWT.RIGHT);
		fd_txtCMR2.top = new FormAttachment(labYF2, 0, SWT.TOP);
		fd_txtCMR2.left = new FormAttachment(labYF2, hori_space);
		txtCMR2.setLayoutData(fd_txtCMR2);
		
		Label labCMR2 = toolkit.createLabel(compYWJT, "次/日", SWT.NONE);
		FormData fd_labCMR2 = new FormData();
		fd_labCMR2.top = new FormAttachment(txtCMR2, 0, SWT.TOP);
		fd_labCMR2.left = new FormAttachment(txtCMR2, hori_space);
		labCMR2.setLayoutData(fd_labCMR2);
		
		txtMCYL2 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtMCYL2 = new FormData();
		fd_txtMCYL2.right = new FormAttachment(labCMR2, 70, SWT.RIGHT);
		fd_txtMCYL2.top = new FormAttachment(labCMR2, 0, SWT.TOP);
		fd_txtMCYL2.left = new FormAttachment(labCMR2, neighbor_sapce);
		txtMCYL2.setLayoutData(fd_txtMCYL2);
		
		comboMCYL2 = new Combo(compYWJT, SWT.READ_ONLY);
		comboMCYL2.setItems(new String[] {"mg/次", "片/次"});
		FormData fd_comboMCYL2 = new FormData();
		fd_comboMCYL2.bottom = new FormAttachment(labYWMC2, 4, SWT.BOTTOM);
		fd_comboMCYL2.left = new FormAttachment(txtMCYL2, hori_space);
		comboMCYL2.setLayoutData(fd_comboMCYL2);
		toolkit.adapt(comboMCYL2);
		toolkit.paintBordersFor(comboMCYL2);
		
		Label labYWMC3 = toolkit.createLabel(compYWJT, "药物名称3：", SWT.NONE);
		FormData fd_labYWMC3 = new FormData();
		fd_labYWMC3.top = new FormAttachment(labYWMC2, row_space);
		fd_labYWMC3.left = new FormAttachment(labYWMC2, 0, SWT.LEFT);
		labYWMC3.setLayoutData(fd_labYWMC3);
		
		txtYWMC3 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtYWMC3 = new FormData();
		fd_txtYWMC3.right = new FormAttachment(labYWMC3, 132, SWT.RIGHT);
		fd_txtYWMC3.top = new FormAttachment(labYWMC3, 0, SWT.TOP);
		fd_txtYWMC3.left = new FormAttachment(labYWMC3, hori_space);
		txtYWMC3.setLayoutData(fd_txtYWMC3);
		
		Label labYF3 = toolkit.createLabel(compYWJT, "用法：", SWT.NONE);
		FormData fd_labYF3 = new FormData();
		fd_labYF3.top = new FormAttachment(txtYWMC3, 0, SWT.TOP);
		fd_labYF3.left = new FormAttachment(txtYWMC3, neighbor_sapce);
		labYF3.setLayoutData(fd_labYF3);
		
		txtCMR3 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtCMR3 = new FormData();
		fd_txtCMR3.right = new FormAttachment(labYF3, 50, SWT.RIGHT);
		fd_txtCMR3.top = new FormAttachment(labYF3, 0, SWT.TOP);
		fd_txtCMR3.left = new FormAttachment(labYF3, hori_space);
		txtCMR3.setLayoutData(fd_txtCMR3);
		
		Label labCMR3 = toolkit.createLabel(compYWJT, "次/日", SWT.NONE);
		FormData fd_labCMR3 = new FormData();
		fd_labCMR3.top = new FormAttachment(txtCMR3, 0, SWT.TOP);
		fd_labCMR3.left = new FormAttachment(txtCMR3, hori_space);
		labCMR3.setLayoutData(fd_labCMR3);
		
		txtMCYL3 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtMCYL3 = new FormData();
		fd_txtMCYL3.right = new FormAttachment(labCMR3, 70, SWT.RIGHT);
		fd_txtMCYL3.top = new FormAttachment(labCMR3, 0, SWT.TOP);
		fd_txtMCYL3.left = new FormAttachment(labCMR3, neighbor_sapce);
		txtMCYL3.setLayoutData(fd_txtMCYL3);
		
		comboMCYL3 = new Combo(compYWJT, SWT.READ_ONLY);
		comboMCYL3.setItems(new String[] {"mg/次", "片/次"});
		FormData fd_comboMCYL3 = new FormData();
		fd_comboMCYL3.bottom = new FormAttachment(labYWMC3, 4, SWT.BOTTOM);
		fd_comboMCYL3.left = new FormAttachment(txtMCYL3, hori_space);
		comboMCYL3.setLayoutData(fd_comboMCYL3);
		toolkit.adapt(comboMCYL3);
		toolkit.paintBordersFor(comboMCYL3);
		
		Label labYWMC4 = toolkit.createLabel(compYWJT, "药物名称4：", SWT.NONE);
		FormData fd_labYWMC4 = new FormData();
		fd_labYWMC4.top = new FormAttachment(labYWMC3, row_space);
		fd_labYWMC4.left = new FormAttachment(labYWMC3, 0, SWT.LEFT);
		labYWMC4.setLayoutData(fd_labYWMC4);
		
		txtYWMC4 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtYWMC4 = new FormData();
		fd_txtYWMC4.right = new FormAttachment(labYWMC4, 132, SWT.RIGHT);
		fd_txtYWMC4.top = new FormAttachment(labYWMC4, 0, SWT.TOP);
		fd_txtYWMC4.left = new FormAttachment(labYWMC4, hori_space);
		txtYWMC4.setLayoutData(fd_txtYWMC4);
		
		Label labYF4 = toolkit.createLabel(compYWJT, "用法：", SWT.NONE);
		FormData fd_labYF4 = new FormData();
		fd_labYF4.top = new FormAttachment(txtYWMC4, 0, SWT.TOP);
		fd_labYF4.left = new FormAttachment(txtYWMC4, neighbor_sapce);
		labYF4.setLayoutData(fd_labYF4);
		
		txtCMR4 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtCMR4 = new FormData();
		fd_txtCMR4.right = new FormAttachment(labYF4, 50, SWT.RIGHT);
		fd_txtCMR4.top = new FormAttachment(labYF4, 0, SWT.TOP);
		fd_txtCMR4.left = new FormAttachment(labYF4, hori_space);
		txtCMR4.setLayoutData(fd_txtCMR4);
		
		Label labCMR4 = toolkit.createLabel(compYWJT, "次/日", SWT.NONE);
		FormData fd_labCMR4 = new FormData();
		fd_labCMR4.top = new FormAttachment(txtCMR4, 0, SWT.TOP);
		fd_labCMR4.left = new FormAttachment(txtCMR4, hori_space);
		labCMR4.setLayoutData(fd_labCMR4);
		
		txtMCYL4 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtMCYL4 = new FormData();
		fd_txtMCYL4.right = new FormAttachment(labCMR4, 70, SWT.RIGHT);
		fd_txtMCYL4.top = new FormAttachment(labCMR4, 0, SWT.TOP);
		fd_txtMCYL4.left = new FormAttachment(labCMR4, neighbor_sapce);
		txtMCYL4.setLayoutData(fd_txtMCYL4);
		
		comboMCYL4 = new Combo(compYWJT, SWT.READ_ONLY);
		comboMCYL4.setItems(new String[] {"mg/次", "片/次"});
		FormData fd_comboMCYL4 = new FormData();
		fd_comboMCYL4.bottom = new FormAttachment(labYWMC4, 4, SWT.BOTTOM);
		fd_comboMCYL4.left = new FormAttachment(txtMCYL4, hori_space);
		comboMCYL4.setLayoutData(fd_comboMCYL4);
		toolkit.adapt(comboMCYL4);
		toolkit.paintBordersFor(comboMCYL4);
		
		Label labFYQK = toolkit.createLabel(compYWJT, "服药情况：", SWT.NONE);
		FormData fd_labFYQK = new FormData();
		fd_labFYQK.top = new FormAttachment(labYWMC4, row_space);
		fd_labFYQK.right = new FormAttachment(labYWMC4, 0, SWT.RIGHT);
		labFYQK.setLayoutData(fd_labFYQK);
		
		comboFYQK = new Combo(compYWJT, SWT.READ_ONLY);
		comboFYQK.setItems(new String[] {"规律服药","间断服药","不服药"});
		FormData fd_comboFYQK = new FormData();
		fd_comboFYQK.bottom = new FormAttachment(labFYQK, 4, SWT.BOTTOM);
		fd_comboFYQK.left = new FormAttachment(labFYQK, hori_space);
		comboFYQK.setLayoutData(fd_comboFYQK);
		toolkit.adapt(comboFYQK);
		toolkit.paintBordersFor(comboFYQK);
		
		Label labBLFY = toolkit.createLabel(compYWJT, "不良反应：", SWT.NONE);
		FormData fd_labBLFY = new FormData();
		fd_labBLFY.top = new FormAttachment(labFYQK, 0, SWT.TOP);
		fd_labBLFY.left = new FormAttachment(comboFYQK, neighbor_sapce);
		labBLFY.setLayoutData(fd_labBLFY);
		
		comboBLFY = new Combo(compYWJT, SWT.READ_ONLY);
		comboBLFY.setItems(new String[] {"无","有"});
		FormData fd_comboBLFY = new FormData();
		fd_comboBLFY.bottom = new FormAttachment(labBLFY, 4, SWT.BOTTOM);
		fd_comboBLFY.left = new FormAttachment(labBLFY, hori_space);
		comboBLFY.setLayoutData(fd_comboBLFY);
		toolkit.adapt(comboBLFY);
		toolkit.paintBordersFor(comboBLFY);
		
		txtBLFY = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtBLFY = new FormData();
		fd_txtBLFY.right = new FormAttachment(comboBLFY, 180, SWT.RIGHT);
		fd_txtBLFY.top = new FormAttachment(comboBLFY, 4, SWT.TOP);
		fd_txtBLFY.left = new FormAttachment(comboBLFY, hori_space);
		txtBLFY.setLayoutData(fd_txtBLFY);
		
		//实验室检查
		Section sctSYSJC = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctSYSJC = new FormData();
		fd_sctSYSJC.right = new FormAttachment(100, -sect_margin);
		fd_sctSYSJC.top = new FormAttachment(sctYWJT, top_sect_space, SWT.BOTTOM);
		fd_sctSYSJC.left = new FormAttachment(0, sect_margin);
		sctSYSJC.setLayoutData(fd_sctSYSJC);
		toolkit.paintBordersFor(sctSYSJC);
		sctSYSJC.setText("实验室检查");// 实验室检查
		sctSYSJC.setExpanded(true);

		Composite compSYSJC = toolkit.createComposite(sctSYSJC, SWT.NONE);
		toolkit.paintBordersFor(compSYSJC);
		sctSYSJC.setClient(compSYSJC);
		compSYSJC.setLayout(new FormLayout());
		
		
		
		Label labGGNJC = toolkit.createLabel(compSYSJC, "肝功能检测：", SWT.NONE);
		FormData fd_labGGNJC = new FormData();
		fd_labGGNJC.top = new FormAttachment(0, 10);
		fd_labGGNJC.left = new FormAttachment(4, left_margin);
		labGGNJC.setLayoutData(fd_labGGNJC);
		
		comboGGNJC = new Combo(compSYSJC, SWT.READ_ONLY);
		comboGGNJC.setItems(new String[] {"异常", "正常"});
		FormData fd_comboGGNJC = new FormData();
		fd_comboGGNJC.top = new FormAttachment(labGGNJC, -4, SWT.TOP);
		fd_comboGGNJC.left = new FormAttachment(labGGNJC, hori_space);
		fd_comboGGNJC.bottom = new FormAttachment(100, -10);
		comboGGNJC.setLayoutData(fd_comboGGNJC);
		toolkit.adapt(comboGGNJC);
		toolkit.paintBordersFor(comboGGNJC);

		
		//行为生活方式
		Section sctXWSHFS = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctXWSHFS = new FormData();
		fd_sctXWSHFS.right = new FormAttachment(100, -sect_margin);
		fd_sctXWSHFS.top = new FormAttachment(sctSYSJC, top_sect_space, SWT.BOTTOM);
		fd_sctXWSHFS.left = new FormAttachment(0, sect_margin);
		sctXWSHFS.setLayoutData(fd_sctXWSHFS);
		toolkit.paintBordersFor(sctXWSHFS);
		sctXWSHFS.setText("行为生活方式");// 行为生活方式
		sctXWSHFS.setExpanded(true);

		Composite compXWSHFS = toolkit.createComposite(sctXWSHFS, SWT.NONE);
		toolkit.paintBordersFor(compXWSHFS);
		sctXWSHFS.setClient(compXWSHFS);
		compXWSHFS.setLayout(new FormLayout());
		
		Label labXYM = toolkit.createLabel(compXWSHFS, "吸烟：", SWT.NONE);
		FormData fd_labXYM = new FormData();
		fd_labXYM.top = new FormAttachment(0, top_sect_space);
		fd_labXYM.left = new FormAttachment(4, left_margin);
		labXYM.setLayoutData(fd_labXYM);
		
		txtXYM = toolkit.createText(compXWSHFS, "", SWT.NONE);
		FormData fd_txtXYM = new FormData();
		fd_txtXYM.right = new FormAttachment(labXYM, 50, SWT.RIGHT);
		fd_txtXYM.top = new FormAttachment(labXYM, 0, SWT.TOP);
		fd_txtXYM.left = new FormAttachment(labXYM, hori_space);
		txtXYM.setLayoutData(fd_txtXYM);
		
		Label labZMT = toolkit.createLabel(compXWSHFS, "支/天", SWT.NONE);
		FormData fd_labZMT = new FormData();
		fd_labZMT.top = new FormAttachment(txtXYM, 0, SWT.TOP);
		fd_labZMT.left = new FormAttachment(txtXYM, hori_space);
		labZMT.setLayoutData(fd_labZMT);
		
		Label labYJ = toolkit.createLabel(compXWSHFS, "饮酒：", SWT.NONE);
		FormData fd_labYJ = new FormData();
		fd_labYJ.top = new FormAttachment(labZMT, 0, SWT.TOP);
		fd_labYJ.left = new FormAttachment(labZMT, neighbor_sapce);
		labYJ.setLayoutData(fd_labYJ);
		
		txtYJ = toolkit.createText(compXWSHFS, "", SWT.NONE);
		FormData fd_txtYJ = new FormData();
		fd_txtYJ.right = new FormAttachment(labYJ, 50, SWT.RIGHT);
		fd_txtYJ.top = new FormAttachment(labYJ, 0, SWT.TOP);
		fd_txtYJ.left = new FormAttachment(labYJ, hori_space);
		txtYJ.setLayoutData(fd_txtYJ);
		
		Label labLMT = toolkit.createLabel(compXWSHFS, "两/天", SWT.NONE);
		FormData fd_labLMT = new FormData();
		fd_labLMT.top = new FormAttachment(txtYJ, 0, SWT.TOP);
		fd_labLMT.left = new FormAttachment(txtYJ, hori_space);
		labLMT.setLayoutData(fd_labLMT);
		
		Label labYS = toolkit.createLabel(compXWSHFS, "饮食：", SWT.NONE);
		FormData fd_labYS = new FormData();
		fd_labYS.top = new FormAttachment(labLMT, 0, SWT.TOP);
		fd_labYS.left = new FormAttachment(labLMT, neighbor_sapce);
		labYS.setLayoutData(fd_labYS);
		
		comboYS = new Combo(compXWSHFS, SWT.READ_ONLY);
		comboYS.setItems(new String[] {"合理","基本合理","不合理"});
		FormData fd_comboYS = new FormData();
		fd_comboYS.bottom = new FormAttachment(labYS, 4, SWT.BOTTOM);
		fd_comboYS.left = new FormAttachment(labYS, hori_space);
		comboYS.setLayoutData(fd_comboYS);
		toolkit.adapt(comboYS);
		toolkit.paintBordersFor(comboYS);
		
		Label labYD = toolkit.createLabel(compXWSHFS, "运动：", SWT.NONE);
		FormData fd_labYD = new FormData();
		fd_labYD.top = new FormAttachment(labYS, 0, SWT.TOP);
		fd_labYD.left = new FormAttachment(comboYS, neighbor_sapce);
		labYD.setLayoutData(fd_labYD);
		
		txtCMZ = toolkit.createText(compXWSHFS, "", SWT.NONE);
		FormData fd_txtCMZ = new FormData();
		fd_txtCMZ.right = new FormAttachment(labYD, 50, SWT.RIGHT);
		fd_txtCMZ.top = new FormAttachment(labYD, 0, SWT.TOP);
		fd_txtCMZ.left = new FormAttachment(labYD, hori_space);
		txtCMZ.setLayoutData(fd_txtCMZ);
		
		Label labZMC = toolkit.createLabel(compXWSHFS, "次/周", SWT.NONE);
		FormData fd_labZMC = new FormData();
		fd_labZMC.top = new FormAttachment(txtCMZ, 0, SWT.TOP);
		fd_labZMC.left = new FormAttachment(txtCMZ, hori_space);
		labZMC.setLayoutData(fd_labZMC);
		
		txtFZMC = toolkit.createText(compXWSHFS, "", SWT.NONE);
		FormData fd_txtFZMC = new FormData();
		fd_txtFZMC.right = new FormAttachment(labZMC, 50, SWT.RIGHT);
		fd_txtFZMC.top = new FormAttachment(labZMC, 0, SWT.TOP);
		fd_txtFZMC.left = new FormAttachment(labZMC, hori_space);
		txtFZMC.setLayoutData(fd_txtFZMC);
		
		Label labFZMC = toolkit.createLabel(compXWSHFS, "分钟/次", SWT.NONE);
		FormData fd_labFZMC = new FormData();
		fd_labFZMC.top = new FormAttachment(txtFZMC, 0, SWT.TOP);
		fd_labFZMC.left = new FormAttachment(txtFZMC, hori_space);
		labFZMC.setLayoutData(fd_labFZMC);
		
//		comboYD = new Combo(compXWSHFS, SWT.READ_ONLY);
//		comboYD.setItems(new String[] {"每天","不运动","偶尔","每周一次以上"});
//		FormData fd_comboYD = new FormData();
//		fd_comboYD.bottom = new FormAttachment(labYD, 4, SWT.BOTTOM);
//		fd_comboYD.left = new FormAttachment(labYD, hori_space);
//		comboYD.setLayoutData(fd_comboYD);
//		toolkit.adapt(comboYD);
//		toolkit.paintBordersFor(comboYD);
//		
		Label labBLQX = toolkit.createLabel(compXWSHFS, "是否有不良心理情绪：", SWT.NONE);
		FormData fd_labBLQX = new FormData();
		fd_labBLQX.top = new FormAttachment(labXYM, row_space);
		fd_labBLQX.left = new FormAttachment(labXYM, 0, SWT.LEFT);
		labBLQX.setLayoutData(fd_labBLQX);
		
		comboBLQX = new Combo(compXWSHFS, SWT.READ_ONLY);
		comboBLQX.setItems(new String[] {"有","无"});
		FormData fd_comboBLQX = new FormData();
		fd_comboBLQX.bottom = new FormAttachment(labBLQX, 4, SWT.BOTTOM);
		fd_comboBLQX.left = new FormAttachment(labBLQX, hori_space);
		comboBLQX.setLayoutData(fd_comboBLQX);
		toolkit.adapt(comboBLQX);
		toolkit.paintBordersFor(comboBLQX);
		
		Label labHJ = toolkit.createLabel(compXWSHFS, "环境：", SWT.NONE);
		FormData fd_labHJ = new FormData();
		fd_labHJ.top = new FormAttachment(labBLQX, 0, SWT.TOP);
		fd_labHJ.left = new FormAttachment(comboBLQX, neighbor_sapce);
		labHJ.setLayoutData(fd_labHJ);
		
		comboHJ = new Combo(compXWSHFS, SWT.READ_ONLY);
		comboHJ.setItems(new String[] {"合理", "基本合理 ", "不合理"});
		FormData fd_comboHJ = new FormData();
		fd_comboHJ.bottom = new FormAttachment(labHJ, 4, SWT.BOTTOM);
		fd_comboHJ.left = new FormAttachment(labHJ, hori_space);
		comboHJ.setLayoutData(fd_comboHJ);
		toolkit.adapt(comboHJ);
		toolkit.paintBordersFor(comboHJ);
		
		Label labZYXW = toolkit.createLabel(compXWSHFS, "遵医行为：", SWT.NONE);
		FormData fd_labZYXW = new FormData();
		fd_labZYXW.top = new FormAttachment(labBLQX, 0, SWT.TOP);
		fd_labZYXW.left = new FormAttachment(comboHJ, neighbor_sapce);
		labZYXW.setLayoutData(fd_labZYXW);
		
		comboZYXW = new Combo(compXWSHFS, SWT.READ_ONLY);
		comboZYXW.setItems(new String[] {"浪 好","一般","差"});
		FormData fd_comboZYXW = new FormData();
		fd_comboZYXW.bottom = new FormAttachment(labZYXW, 4, SWT.BOTTOM);
		fd_comboZYXW.left = new FormAttachment(labZYXW, hori_space);
		comboZYXW.setLayoutData(fd_comboZYXW);
		toolkit.adapt(comboZYXW);
		toolkit.paintBordersFor(comboZYXW);
		
		//指导意见
		Section sctZDYJ = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctZDYJ = new FormData();
		fd_sctZDYJ.right = new FormAttachment(100, -sect_margin);
		fd_sctZDYJ.top = new FormAttachment(sctXWSHFS, top_sect_space, SWT.BOTTOM);
		fd_sctZDYJ.left = new FormAttachment(0, sect_margin);
		sctZDYJ.setLayoutData(fd_sctZDYJ);
		toolkit.paintBordersFor(sctZDYJ);
		sctZDYJ.setText("指导意见");// 指导意见
		sctZDYJ.setExpanded(true);

		Composite compZDYJ = toolkit.createComposite(sctZDYJ, SWT.NONE);
		toolkit.paintBordersFor(compZDYJ);
		sctZDYJ.setClient(compZDYJ);
		compZDYJ.setLayout(new FormLayout());
		
		
		
		Label labKFXT = toolkit.createLabel(compZDYJ, " 指导意见：", SWT.NONE);
		FormData fd_labKFXT = new FormData();
		fd_labKFXT.top = new FormAttachment(0, 10);
		fd_labKFXT.left = new FormAttachment(4, left_margin);
		fd_labKFXT.bottom =  new FormAttachment(100, -90);
		labKFXT.setLayoutData(fd_labKFXT);
		
		txtZDYJ = toolkit.createText(compZDYJ, "", SWT.MULTI);
		FormData fd_txtZDYJ = new FormData();
		fd_txtZDYJ.top = new FormAttachment(labKFXT, 0, SWT.TOP);
		fd_txtZDYJ.left = new FormAttachment(labKFXT, hori_space);
		fd_txtZDYJ.right = new FormAttachment(labKFXT, 776);
		fd_txtZDYJ.bottom = new FormAttachment(labKFXT, 80, SWT.BOTTOM);
		txtZDYJ.setLayoutData(fd_txtZDYJ);

		
		Section sctSFXY = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctSFXY = new FormData();
		fd_sctSFXY.right = new FormAttachment(100, -sect_margin);
		fd_sctSFXY.top = new FormAttachment(sctZDYJ, top_sect_space, SWT.BOTTOM);
		fd_sctSFXY.left = new FormAttachment(0, sect_margin);
		sctSFXY.setLayoutData(fd_sctSFXY);
		toolkit.paintBordersFor(sctSFXY);
		sctSFXY.setText("操作信息");// 本次随访医生建议
		sctSFXY.setExpanded(true);

		Composite compSFXY = toolkit.createComposite(sctSFXY, SWT.NONE);
		toolkit.paintBordersFor(compSFXY);
		sctSFXY.setClient(compSFXY);
		compSFXY.setLayout(new FormLayout());
		
		Label labSFYSQM = toolkit.createLabel(compSFXY, "随访医生签名：", SWT.NONE);
		FormData fd_labSFYSQM = new FormData();
		fd_labSFYSQM.top = new FormAttachment(0, 10);
		fd_labSFYSQM.left = new FormAttachment(4, left_margin);
		fd_labSFYSQM.bottom = new FormAttachment(100,-20);
		labSFYSQM.setLayoutData(fd_labSFYSQM);
		
		comboSFYSQM = new Combo(compSFXY, SWT.READ_ONLY);
		FormData fd_comboSFYSQM = new FormData();
		fd_comboSFYSQM.bottom = new FormAttachment(labSFYSQM, 4, SWT.BOTTOM);
		fd_comboSFYSQM.left = new FormAttachment(labSFYSQM, hori_space);
		comboSFYSQM.setLayoutData(fd_comboSFYSQM);
		toolkit.adapt(comboSFYSQM);
		toolkit.paintBordersFor(comboSFYSQM);
		
		Label lblXCSFSJ = toolkit.createLabel(compSFXY, "下次随访时间：", SWT.NONE);
		FormData fd_lblXCSFSJ = new FormData();
		fd_lblXCSFSJ.left = new FormAttachment(comboSFYSQM, neighbor_sapce);
		fd_lblXCSFSJ.top = new FormAttachment(labSFYSQM, 0, SWT.TOP);
		lblXCSFSJ.setLayoutData(fd_lblXCSFSJ);
		
		dtXCSFSJ = new DateTime(compSFXY, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtXCSFSJ = new FormData();
		fd_dtXCSFSJ.top = new FormAttachment(lblXCSFSJ, -4, SWT.TOP);
		fd_dtXCSFSJ.left = new FormAttachment(lblXCSFSJ, hori_space);
		dtXCSFSJ.setLayoutData(fd_dtXCSFSJ);
		toolkit.adapt(dtXCSFSJ);
		toolkit.paintBordersFor(dtXCSFSJ);
		
		scrolledComposite.setContent(topLevelContainer);
		scrolledComposite.setMinSize(topLevelContainer.computeSize(SWT.DEFAULT, SWT.DEFAULT));
	}
	private void createToolbar(Composite container){
		
		
			composite_1 = new Composite(container, SWT.NONE);
			composite_1.setLayout(new FillLayout(SWT.HORIZONTAL));
			{
				FormData formData = new FormData();
				formData.height = 50;
				formData.right = new FormAttachment(100);
				formData.top = new FormAttachment(0);
				formData.left = new FormAttachment(0);
				composite_1.setLayoutData(formData);
			}
			{
				ToolBar toolBar = new ToolBar(composite_1, SWT.FLAT | SWT.NONE);
				toolBar.setBackgroundImage(ImageUtil.TBBJ);
				{
					toolItemAdd = new ToolItem(toolBar, SWT.NONE);
					toolItemAdd.setText(Messages.getString("RecordUI.0")); //$NON-NLS-1$
					toolItemAdd.setImage(ImageUtil.add);
					toolItemAdd.addSelectionListener(new SelectionAdapter() {
						@Override
						public void widgetSelected(SelectionEvent e) {
							doAdd();
						}
					});
				}
				{
					toolItemEdit = new ToolItem(toolBar, SWT.NONE);
					toolItemEdit.setText(Messages.getString("RecordUI.1")); //$NON-NLS-1$
					toolItemEdit.setImage(ImageUtil.edit);
					toolItemEdit.addSelectionListener(new SelectionAdapter() {
						@Override
						public void widgetSelected(SelectionEvent e) {
							doEdit();
						}
					});
				}
				{
					toolItemDel = new ToolItem(toolBar, SWT.NONE);
					toolItemDel.setText(Messages.getString("RecordUI.2")); //$NON-NLS-1$
					toolItemDel.setImage(ImageUtil.delete);
					toolItemDel.addSelectionListener(new SelectionAdapter() {
						@Override
						public void widgetSelected(SelectionEvent e) {
							doDel();
						}
					});
				}
				{
					@SuppressWarnings("unused")
					ToolItem toolItem = new ToolItem(toolBar, SWT.SEPARATOR);
				}
				{
					toolItemSave = new ToolItem(toolBar, SWT.NONE);
					toolItemSave.setText(Messages.getString("RecordUI.3")); //$NON-NLS-1$
					toolItemSave.addSelectionListener(new SelectionAdapter() {
						@Override
						public void widgetSelected(SelectionEvent e) {
							doSave();
						}
					});
					toolItemSave.setImage(ImageUtil.save);
				}

				{
					toolItemCancel = new ToolItem(toolBar, SWT.NONE);
					toolItemCancel.setText(Messages.getString("RecordUI.4")); //$NON-NLS-1$
					toolItemCancel.addSelectionListener(new SelectionAdapter() {
						@Override
						public void widgetSelected(SelectionEvent e) {
							doCancel();
						}
					});
					toolItemCancel.setImage(ImageUtil.cancel);
				}
				
			}
		
	}
	public void dispose() {
		toolkit.dispose();
		super.dispose();
	}

	protected abstract void doCancel();

	protected abstract void doSave();

	protected abstract void doDel();

	protected abstract void doEdit();

	protected abstract void doAdd();

	@Override
	public void setFocus() {
		// Set the focus
	}
}
